"""
初识python对象
"""


# 设计一个类
class Person:
    name = None  # 姓名
    age = None  # 年龄
    gender = None  # 性别
    nationality = None  # 国籍
    native_place = None  # 籍贯


# 创建对象
person1 = Person()

# 设置对象属性
person1.name = "曹操"
person1.age = "38"
person1.gender = "男"
person1.nationality = "中国"
person1.native_place = "河南省"

# 打印对象属性
print(person1.name)
print(person1.age)
print(person1.gender)
print(person1.nationality)
print(person1.native_place)
